using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;
using ZoneFiveSoftware.Common.Data.Fitness;

namespace FilteredStatistics.View
{
    class ZoneCategoriesDataGridViewColumn : DataGridViewColumn
    {
        public ZoneCategoriesDataGridViewColumn()
            : base(new ZoneCategoriesDataGridViewCell())
        {
            DataPropertyName = "Name";
        }

        public override DataGridViewCell CellTemplate
        {
            get { return base.CellTemplate; }
            set
            {
                Debug.Assert(value == null || value.GetType().IsAssignableFrom(typeof(ZoneCategoriesDataGridViewCell)));

                base.CellTemplate = value;
            }
        }
    }
}
